home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20031118-20041115
/
000015_anthonypieper@cs.com_Tue Nov 25 09:55:05 2003.msg
< prev
next >
Wrap
Internet Message Format
|
2004-11-14
|
1KB
Path: newsmaster.cc.columbia.edu!panix!news.maxwell.syr.edu!postnews1.google.com!not-for-mail
From: anthonypieper@cs.com (newexpectuser)
Newsgroups: comp.protocols.kermit.misc
Subject: How do I get kermit to return a code to a calling Linux Script ?
Date: 25 Nov 2003 06:18:30 -0800
Organization: http://groups.google.com
Lines: 22
Message-ID: <f0bb0f39.0311250618.1bb06acf@posting.google.com>
NNTP-Posting-Host: 209.251.39.194
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1069769910 20847 127.0.0.1 (25 Nov 2003 14:18:30 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 25 Nov 2003 14:18:30 +0000 (UTC)
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14691
I have the following line that I purposely triggered to try to
simulate a timeout condition in my script:
.
.
.
:1, echo PASSWORD PROMPT OK
lineout xxxxxxxxx
input 10 "#"
if fail break stop 1 output \quit\13
.
.
.
}
echo "Outside loop"
bye
exit
I have a Linux script calling this Kermit script, but it doesn't seem
to recognize the return code of a 1 from the stop command ?...I had to
use the 'output \quit\13' because the stop was leaving me at the
"C-Kermit>" prompt, I guess this is the correct syntax, because it put
me back into my calling script.